home *** CD-ROM | disk | FTP | other *** search
- #
- # $PROJECT: Include Makefiles
- #
- # $VER: gcc.mk 0.1 (21.07.95)
- #
- # by
- #
- # Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
- #
- # (C) Copyright 1995
- # All Rights Reserved !
- #
- # $HISTORY:
- #
- # 21.07.95 : 000.001 : initial
- #
-
- ##############################################################################
- #
- # GNUMake GCC-C pattern rules
- #
- # These rules compiles every c and c++ source and puts the output to
- # the OBJDIR directory
- #
-
- $(OBJDIR)/%.o: %.cc
- gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
- $(ARCHIVER)
-
- $(OBJDIR)/%.o: %.c
- gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
- $(ARCHIVER)
-
- ##############################################################################
- #
- # make prototypes
- #
-
- protos: $(PROTOS)
-
- $(PROTOS): $(SRCS)
- c:swtools/mkproto $(SRCS) TO $(PROTOS)
-
- ##############################################################################
- #
- # check in all files
- #
-
- checkin:
- ci -I -nV$(VERSION)_$(REVISION) -r -t-initial $(subst RCS,,$(wildcard *))
-
- ##############################################################################
- #
- # check out all files
- #
-
- checkout:
- $(CO) -l $(subst RCS/,,$(wildcard RCS/*))
-
- ##############################################################################
- #
- # make the object directory
- #
-
- $(OBJDIR):
- mkdir $(OBJDIR)
-
- ##############################################################################
- #
- # make dependency include makefile
- #
-
- makedep:
- gcc -MM $(SRCS) $(GCCOPTS) >$(MAKEDEP)
-
-